package com.cbh.feign.controller.user;



import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.cbh.api.model.ApiResult;
import com.cbh.api.model.user.User;

public interface ThreeUserControllerBase {

	@RequestMapping(value = "/exte/v1/app/ThreeUser/registeredThree", method = RequestMethod.POST)
	public ApiResult<User> registeredThreeParty(@RequestParam(value = "OpenId", required = true) String OpenId,
			@RequestParam(value = "clientType", required = true) String clientType,
			@RequestParam(value = "userPhoneNumber", required = true) String userPhoneNumber,
			@RequestParam(value = "userPassword", required = true) String userPassword,
			@RequestParam(value = "verification", required = true) String validation,
			@RequestParam(value = "imei", required = true) String imei,
			@RequestParam(value = "imeiType", required = true) String imeiType);

	@RequestMapping(value = "/exte/v1/app/ThreeUser/queryByOpenId", method = RequestMethod.POST)
	public ApiResult<User> readUserInfo(@RequestParam(value = "OpenId", required = true) String OpenId,
			@RequestParam(value = "clientType", required = true) String clientType,
			@RequestParam(value = "imei", required = true) String imei,
			@RequestParam(value = "imeiType", required = true) String imeiType);

	@RequestMapping(value = "/exte/v1/app/ThreeUser/bindingThreeParty", method = RequestMethod.POST)
	public ApiResult<User> bindingThreeParty(@RequestParam(value = "OpenId", required = true) String OpenId,
			@RequestParam(value = "clientType", required = true) String clientType,
			@RequestParam(value = "duAccount", required = true) String duAccount,
			@RequestParam(value = "password", required = true) String password,
			@RequestParam(value = "imei", required = true) String imei,
			@RequestParam(value = "imeiType", required = true) String imeiType);

}
